package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 联络灯类型
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "联络灯类型")
@Data
@Accessors(chain = true)
@TableName(value = "lamp_type")
public class LampType extends PublicPo implements Serializable {
    /**
     * 联络灯类型
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "联络灯类型")
    private Long id;

    /**
     * 所属分组(common_tree表belong_module = 0 的结构)
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value = "所属分组(common_tree表belong_module = 0 的结构)")
    private Long groupId;

    /**
     * 颜色
     */
    @TableField(value = "color")
    @ApiModelProperty(value = "颜色")
    private String color;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 序号
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "序号", hidden = true)
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建人", hidden = true)
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "创建人", hidden = true)
    private Integer updateUser;

    @TableField(exist = false)
    @ApiModelProperty("分级相关信息")
    private List<LampTypeNotice> lampTypeNotices;

    @TableField(exist = false)
    @ApiModelProperty("去除分级的ids")
    private List<Long> removeLampTypeNoticeIds;

    private static final long serialVersionUID = 1L;
}